#!/usr/bin/env python
# -*- coding: utf-8 -*-
from applications import create_app

app = create_app()

if __name__ == '__main__':
    app.run(
        host='0.0.0.0',
        port=5000,
        debug=app.config["DEBUG"],  # 根据 .env 配置动态决定是否开启 debug
        use_reloader=app.config["DEBUG"]  # 只有 debug 开启时才自动重载
    )
